home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1994 November / Cd Ware (Nro. 2) - Epimundo.iso / DOS / UD / CHECKEL.ZIP / CHECKEL.DOC < prev    next >
Encoding:
Text File  |  1994-03-12  |  1.5 KB  |  30 lines

  1. CHECKEL - version 6.2
  2.  
  3. This program, CHECKEL, will allow you to find the current errorlevel
  4. value from either the DOS prompt, or from within a batch file.  I wrote
  5. it to enable me to find the current errorlevel without going through the
  6. endless wait for a long IF-THEN batch file.  This current version works
  7. only with DOS versions 3.1, 3.2, 3.3, 4.0, 5.0, 6.0, and 6.2 (as far as I 
  8. know) because those are the only DOS versions I still own and therefore 
  9. have access to.  It does NOT work with DR-DOS, because I don't have a copy, 
  10. and therefore couldn't explore it.
  11.  
  12. The Assembly source code is provided for those who would like to see how it
  13. works (no surprises at all).  I used a couple of debuggers (and the
  14. PC-Magazine utility called "RAMVIEW") to trace through COMMAND.COM and find 
  15. the address of the ERRORLEVEL flag, and then read this byte.  I could find 
  16. no pointers to this flag at all, (also no surprise, since it is specifically 
  17. internal to each version of COMMAND.COM, and its batch file invocation 
  18. routine).
  19.  
  20. If you make some improvements on this program, or have some suggestions, please
  21. drop me a line and let me know.  If I can do anything to make it more useful,
  22. I'll be glad to do so.
  23.                              Glenn Snow
  24.                              999 East McKinley Avenue
  25.                              Mundelein, IL  60060
  26.                              (708) 566-4079 (voice)
  27.  
  28.                              glenn.snow@sdorm.org
  29.                              or CompuServe 72317,2751
  30.